#include <iostream>
using namespace std;
void multi_CPU(const int* a,const int* b, int* c, int arraysize);
int main() {
    cout << "CPU版本的乘法" << endl;
    int a[5] = {1,2,3,4,5};
    int b[5] = {1,2,3,4,5};
    int c[5] = {0};
    multi_CPU(a,b,c,5);
    for (int i = 0; i < 5; i++) {
        cout << c[i] << " ";
    }
    cout << endl;
    return 0;
}
/*CPU版本的乘法*/
void multi_CPU(const int* a,const int* b, int* c, int arraysize) {
    for (int i = 0; i < arraysize; i++) {
        c[i] = a[i] * b[i];
    }
}